package com.linsir.config;

import com.linsir.core.FreeMarkerConfigExtend;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ：linsir
 * @date ：Created in 2021/6/30 16:03
 * @description：扩展配置
 * @modified By：
 * @version: 1.0.0
 */
@Configuration
public class FreeMarkerConfig {


    /**
     * shrio 标签扩展配置
     * @return
     */
    @Bean
    public FreeMarkerConfigExtend freeMarkerConfigExtend()
    {
        FreeMarkerConfigExtend freeMarkerConfigExtend = new FreeMarkerConfigExtend();
        freeMarkerConfigExtend.setTemplateLoaderPaths("classpath:/templates/","classpath:/view/");
        return  freeMarkerConfigExtend;
    }
}
